package com.theatre.userservice.model.dto;

import com.theatre.userservice.model.entity.Publisher;
import com.theatre.userservice.model.entity.Shop;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class PublisherDTO {
    private Long id;
    private String name;
    private String phone;
    private String email;
    private String licenseFile;
    private Integer status;
    private String remark;
    public Publisher toEntity() {
        Publisher publisher = new Publisher();
        publisher.setId(this.getId());
        publisher.setName(this.getName());
        publisher.setPhone(this.getPhone());
        publisher.setEmail(this.getEmail());
        publisher.setLicenseFile(this.getLicenseFile());
        return publisher;
    }
}
